package com.finley.flowabledemo.design.state;


/**
 * @description:
 * @author: xianfei.chao
 * @date 2025/5/31 10:23
 * @version: 1.0
 */
public class TestMain {

    public static void main(String[] args) {
        WorkContext workContext = new WorkContext();
        workContext.setHours(10);
        workContext.handle();

        workContext.setHours(13);
        workContext.handle();

        workContext.setHours(16);
        workContext.handle();

        workContext.setHours(20);
        workContext.setFinish(false);
        workContext.handle();

        workContext.setHours(21);
        workContext.setFinish(true);
        workContext.handle();
    }
}
